home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / cli / okami15.lzh / OKAMI15 / HELP < prev    next >
Text File  |  1992-09-20  |  9KB  |  235 lines

  1. Internal Commands:
  2.  
  3. DISPLAYING AND MANIPULATING DATA
  4.  cat [-b] {file}        copy file(s) to StdOut
  5.  crypt [key]            encrypt or decrypt StdIn to StdOut
  6.  echo {string}            write strings to StdOut
  7.  egrep [-cfl] pattern {file}    find pattern, allows regular expressions
  8.  fgrep [-cfl] pattern {file}    find pattern, fixed string only
  9.  grep [-cfsl] pattern {file}    find pattern, allows extended wildcards
  10.  hd {file}            Hex dump
  11.  more {file}            show file in pages
  12.  pg {file}            same as more
  13.  raw [-bnc] {file}        put file(s) on raw console
  14.  split [-bfv] [-Num] {file}    break file into pieces of Num lines each
  15.  tee file            copy StdIn to StdOut and to file
  16.  tr fltrfile            filter StdIn to StdOut according to fltrfile
  17.  wc [-lwcn] {file}        count lines, words, and characters
  18.  what [-s] {file}        identify files by @(#)
  19.  
  20. MAINTAINING FILES AND DIRECTORIES 
  21.  chmod (+|-)[cdhrsvf] file    change file attributes
  22.  cp [-acCvifq] src {src} dest    copy files
  23.  ln [-s] src {src} dest     link files (MiNT only)
  24.  ls [-adlfkcCvixtnbr] {filespec} list files
  25.  mkdir [-r] dir {dir}        create directories
  26.  mv [-vif] src {src} dest    move or rename files
  27.  rm [-friqv] file {file}    remove files
  28.  rmdir dir {dir}        remove directories
  29.  touch file {file}        update date-time-stamp or create a file
  30.  
  31. SHELL PROGRAMMING
  32.  . file             execute a file as a shell script
  33.  [ expr ]            same as test
  34.  alert icn def boxt butt [var]    (*) display an AES alert box
  35.  exec [-lbxg] file {Parameter}    execute a file as a binary program
  36.  exit                finish a script
  37.  Exit                finish the shell
  38.  false                returns 0
  39.  fsel [filespec [name [var [lbl]]]]   (*) select a file with the fileselect box
  40.  if, then, else, fi        see below
  41.  indir String            send String once more through the evaluator
  42.  read [[-] variable]        read a variable from StdIn
  43.  sleep [-s] Time        wait for a while
  44.  test [expr]            evaluate a logical expression
  45.  true                returns 1
  46.  while, do, break, done     see below
  47.  xargs [Command {Parameter}]    perform with lines from StdIn, replace {}
  48.  
  49. SHELL AND SYSTEM MANAGEMENT AND CONFIGURATION
  50.  alias name string        set up a shell function
  51.  clipb [path]            (*) configure the AES clipboard ($CLIPDIR)
  52.  cursor [(+|-)bv] [rate]    configure VT52 cursor
  53.  date [+DateFmt]        show time and date
  54.  df [-dnmbf] {drive}        disk space info
  55.  drive drive{drive} [name]    get/set drive names
  56.  du [-brft] {directory}     disk usage info & directory tree
  57.  exit                finish the shell
  58.  export [[-] {Variable}]    mark or unmark for envir. (wildcards allowed)
  59.  goff                exit from AES application
  60.  gon [-q]            init as AES application or query
  61.  hash [-r] [Cmd [Path]]     read&set the hash table (wildcards allowed)
  62.  keyb [-] | ([(+|-)abc] [-irk]) konfigure the keyboard
  63.  keydef [+nsca] key [text|-]    redefine the keyboard
  64.  mouse [+|-] [form] [Var [Var [Var]]]    (*) configure or query the mouse
  65.  overscan [+|-]         switch OverScan on and off
  66.  readonly [[-] {variable]}    make variables readonly (wildcards allowed)
  67.  rdti [-dclxv] [filename]    configure shell from desktop.inf
  68.  rsconf [-spbw] [(+|-)xr]    configure the serial interface (RS232)
  69.  scr [-bwghl]            set backgr.col and (*) # of lines (hires only)
  70.  shutdown [-rRtfv]        shut down or reset the system
  71.  sync                flush TCache write buffer
  72.  trap [-|[+]Command {Parameter}] set a command to execute on shell exit
  73.  unalias name {name}        same as unset
  74.  unset name {name}        delete shell functions
  75.  
  76. SHELL AND SYSTEM MONITORING
  77.  adr                show some system adresses
  78.  basep [-ap] [adress]        find or analyse a basepage
  79.  cmds [-Ca] {pattern}        list internal commands (wildcards allowed)
  80.  cookie [-xdn0sc] {cookie}    read out the cookie jar (wildcards allowed)
  81.  env                show the shell's environment
  82.  errcode {Number|errno}     explain an error number
  83.  fcts                list Shell functions
  84.  history [-l]            load or save the history list
  85.  id                print user & group id (MiNT only)
  86.  mem [-b]            show free or total RAM
  87.  memex [-acwls] Adress [Number] examine memory
  88.  pmd                produce a post mortem dump
  89.  set [-|(+|-)blxaschuS]     show/set Shell flags
  90.  time Command {Parameter}    command run time
  91.  tty                print name of terminal
  92.  type [-fs] command {command}    show calling path of command
  93.  vars [-aexs]            list Shell variables
  94.  ver [-oclgtdmMa]        show shell & OS version numbers
  95.  
  96. UTILITIES
  97.  backup [-nNrq] [path]        save files to disk
  98.  dial [-q|-f file|{No|Id|-d}]    dial a phone number on the modem
  99.  find path {condition}        recursively find files
  100.  getscr [-[header] filename]    get screen bit image
  101.  kill [-sig] pid {pid}        send a signal to processes (MiNT only)
  102.  man [command]            online help
  103.  putscr [-(f|s filename)]    show/save a screen bit image
  104.  rpn [Fmt] rpn-expr        RPN calculator
  105.  seek path filespec        list matching files
  106.  sort [-lnrs]            sort StdIn to StdOut
  107.  te [-dk] [Dev {file|:string}]    terminal emulator
  108.  ts [-hlpbmdtref]        terminal server
  109.  upn [Fmt] rpn-expr        same as rpn
  110.  virus [-xvsi] {drive}        find & extinguish bootsector viruses
  111.  
  112. MISCELLANIOUS
  113.  basename file [extender]    find filename (a:\okami\sh.ttp -> sh.ttp)
  114.  bombs n            terminate with n bombs (n>=2)
  115.  cd [path]            change work directory
  116.  cls                clear the screen
  117.  dark                darken the screen (same as ^A)
  118.  dirname file            find path (a:\okami\sh.ttp -> a:\okami\)
  119.  drvname file            find drive (a:\okami\sh.ttp -> a:)
  120.  extname file            find extender (okami\sh.ttp -> .ttp)
  121.  fullname file            find absolute filename
  122.  hardcopy            print contents of screen
  123.  help                same as pg $HOME/help
  124.  logo [x [y]]            draw the Okami logo
  125.  pwd [-a|{Drive}]        print work directory
  126.  system com {args}        execute command via _shell_p
  127.  
  128.  
  129.  (*) command can only be used after gon has been called.
  130.  
  131.  drive:     e.g.    d:
  132.  path:        e.g.    d:\okami
  133.  file:        e.g.    d:\okami\sh.ttp
  134.  filespec:    e.g.    d:\okami\*.sh        or file
  135.  source,dest:    file
  136.  fltrfile:    file
  137.  pattern:    any string
  138.  Number:    eg. 123 (dec), 0xabc (hex), 0123 (oct), %110 (bin), !A (char)
  139.  Adress:    Number
  140.  Time:        Number
  141.  rate:        0:still, 30:normal, <30:faster, >30:slower
  142.  expr:        a logical expression, see "test" in commands.doc
  143.  rpn-expr:    an RPN expression
  144.  Fmt:        a printf format string
  145.  DateFmt:    special printf-like format, see "date" in commands.doc
  146.  form:        0 arrow, 1 hourglass, 2 bee, 3 pointing hand, 4 flat hand,
  147.         5 thin crosshair, 6 thick crosshair, 7 outlined crosshair
  148.  
  149.  
  150.  Commands with optional file (eg. hd [file]) take StdIn if no file is given.
  151.  
  152.  
  153.  Extended Wildcards:
  154.  *    matches anything
  155.  ?    matches one character
  156.  [xyz]    matches x, y, or z
  157.  [x-z]    matches x, ..., z
  158.  [~xy]    matches any character except x and y
  159.  
  160.  Conditional execution:
  161.  if command        Executes commands1 if command returns a non-zero
  162.  then            exit value and commands2 if command returns a
  163.    commands1        zero exit value. "else command2" may be ommitted.
  164.  else            command can be "test expr" or "[ expr ]" (see
  165.    commands2        "test").
  166.  fi            This works with shell scripts and in interactive
  167.             mode.
  168.  
  169.  Looping:
  170.  while command        Executes commands2 until command returns a zero
  171.  do            exit value. break may be used within an if-fi-
  172.    commands2        construct and quits the loop immediately.
  173.    <may include:>    continue may be used within an if-fi-contruct and
  174.    break <or>        starts a new loop immediately.
  175.    continue        This works with shell scripts (and functions) only.
  176.  done
  177.  
  178.  Function deklaration:
  179.  functionname(filename) generates "functionname" from file
  180.  (filename)        generates `basename filename` from file
  181.  functioname()        generates "functionname" with the given
  182.  {            commands
  183.    commands...
  184.  }
  185.  functionname()     removes the named function
  186.  {}
  187.  
  188.  `filename' may be a shell script or executable program file.
  189.  
  190.  
  191.  I/O redirection:
  192.  <            redirect StdIn
  193.  >            redirect StdOut, create
  194.  >>            redirect StdOut, append
  195.  n>            redirect File-Descr. n, create (n=2: StdErr)
  196.  n>>            redirect File-Descr. n, append (n=2: StdErr)
  197.  |            pipe
  198.  <<[-]eofstring     inline document
  199.  `...`            command substitution
  200.  
  201.  Devices:
  202.  A:            Disk Drive A:
  203.  B:            Disk Drive B: etc.
  204.  CON:            Console (screen and keyboard)
  205.  PRN:            Printer (parallel port)
  206.  AUX:            RS232 (serial Port [Modem])
  207.  NULL:            nowhere (set $NULL to specify)
  208.  
  209.  Keyboard command entry:
  210.  Backspace        erase last character
  211.  Up-Arrow        display previous in history (*)
  212.  Dn-Arrow        display next in history (*)